package com.ytjj.qmyx.mall.service.impl;

import com.ytjj.qmyx.mall.mapper.OrdersSpecMapper;
import com.ytjj.qmyx.mall.service.OrdersSpecService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.math.BigDecimal;

@Service
public class OrdersSpecServiceImpl implements OrdersSpecService {

    @Resource
    private OrdersSpecMapper ordersSpecMapper;

    @Override
    public boolean insertOrderSpec(String skuSpec, Integer orderId, BigDecimal price, BigDecimal originalPrice, BigDecimal costPrice) {
        return ordersSpecMapper.insertOrderSpec(skuSpec,orderId,price,originalPrice,costPrice);
    }
}
